#ifndef __E22_RF_CONFIG_H__
#define __E22_RF_CONFIG_H__

#define E22_CMD_HEAD    (0xC0)

#define E22_DEFAULT     (0)
#define E22_CHANNEL_MAX (84)

#define E22_UART_1200   (0)
#define E22_UART_2400   (1)
#define E22_UART_4800   (2)
#define E22_UART_9600   (3)
#define E22_UART_19200  (4)
#define E22_UART_38400  (5)
#define E22_UART_57600  (6)
#define E22_UART_115200 (7)

#define E22_UART_8N1    (0)
#define E22_UART_8O1    (1)
#define E22_UART_8E1    (2)

#define E22_RF_BPS_0K3  (0)
#define E22_RF_BPS_1K2  (1)
#define E22_RF_BPS_2K4  (2)
#define E22_RF_BPS_4K8  (3)
#define E22_RF_BPS_9K6  (4)
#define E22_RF_BPS_19K2 (5)
#define E22_RF_BPS_38K4 (6)
#define E22_RF_BPS_62K5 (7)

#define E22_RF_PACK_240 (0)
#define E22_RF_PACK_128 (1)
#define E22_RF_PACK_64  (2)
#define E22_RF_PACK_32  (3)

#define E22_RSSI_NOISE_OFF (0)
#define E22_RSSI_NOISE_ON  (1)

#define E22_RF_PWR_30DBM (0)
#define E22_RF_PWR_27DBM (1)
#define E22_RF_PWR_24DBM (2)
#define E22_RF_PWR_21DBM (3)

#define E22_RSSI_BYTES_OFF (0)
#define E22_RSSI_BYTES_ON  (1)

#define E22_TRAN_DIRECT         (0)
#define E22_TRAN_POINT_TO_POINT (1)

#define E22_TRAN_RELAY_OFF (0)
#define E22_TRAN_RELAY_ON  (1)

#define E22_LBT_OFF (0)
#define E22_LBT_ON (1)

#define E22_WOR_RECIVE (0)
#define E22_WOR_SEND (1)

#define E22_WOR_PERIOD_500 (0)
#define E22_WOR_PERIOD_1000 (1)
#define E22_WOR_PERIOD_1500 (2)
#define E22_WOR_PERIOD_2000 (3)
#define E22_WOR_PERIOD_2500 (4)
#define E22_WOR_PERIOD_3000 (5)
#define E22_WOR_PERIOD_3500 (6)
#define E22_WOR_PERIOD_4000 (7)

#endif
